package com.eureka.Controller;//package com.example.utilsm2.controller;

import com.eureka.server.DemoServer;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class DemoController {

    @Autowired
    private DemoServer demoServer;

    @PostMapping("/demo")
    public String abc(@RequestParam String abc){
        return demoServer.sayHello(abc);
    }

}
